570b18d4422c75ee9638960ee23ef4497f632e5c
[openwrt/openwrt.git] /
1 From 04dbd87265f6ba4a373b211ba324b437d224fb2d Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Sun, 17 Mar 2013 00:03:31 +0100
4 Subject: [PATCH 21/38] rt2x00: make wmac loadable via OF on rt288x/305x SoC
5
6 This patch ads the match table to allow loading the wmac support from a
7 devicetree.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 ---
11 drivers/net/wireless/ralink/rt2x00/rt2800pci.c | 7 +++++++
12 1 file changed, 7 insertions(+)
13
14 --- a/drivers/net/wireless/ralink/rt2x00/rt2800soc.c
15 +++ b/drivers/net/wireless/ralink/rt2x00/rt2800soc.c
16 @@ -237,10 +237,18 @@ static int bp_rt2x00soc_remove(struct pl
17 return 0;
18 }
19 #endif
20 +
21 +static const struct of_device_id rt2880_wmac_match[] = {
22 + { .compatible = "ralink,rt2880-wmac" },
23 + {},
24 +};
25 +MODULE_DEVICE_TABLE(of, rt2880_wmac_match);
26 +
27 static struct platform_driver rt2800soc_driver = {
28 .driver = {
29 .name = "rt2800_wmac",
30 .mod_name = KBUILD_MODNAME,
31 + .of_match_table = rt2880_wmac_match,
32 },
33 .probe = rt2800soc_probe,
34 #if LINUX_VERSION_IS_GEQ(6,11,0)